package com.example.wisdomclassroomapi.facade.security;

import com.example.wisdomclassroomapi.domain.entity.AuthUserEntity;
import lombok.Data;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.io.Serializable;
import java.util.Set;

@Data
public class ResponseAuthenticationDetails implements Serializable {
    private final String id;

    private final String token;

    private final AuthUserEntity info;

    private final Set<SimpleGrantedAuthority> codes;

    public ResponseAuthenticationDetails(String id, AuthUserEntity info, String token, Set<SimpleGrantedAuthority> code) {
        this.id = id;
        this.info = info;
        this.token = token;
        this.codes = code;
    }
}
